//
//  PhoneRechargeCell.m/Users/lixun/Documents/Project/地球人3.6/Terran/Terran/Terran
//  Terran
//
//  Created by 李勋 on 16/3/6.
//  Copyright © 2016年 yuwubao. All rights reserved.
//

#import "PhoneRechargeCell.h"

#import "PhoneRechargeBlueButton.h"
@implementation PhoneRechargeCell

- (void)awakeFromNib {
    // Initialization code
    self.bgView.backgroundColor = [UIColor clearColor];

    self.moneyBtn.layer.borderWidth   = .5f;
    self.moneyBtn.layer.cornerRadius  = 5;
    self.moneyBtn.layer.borderColor   = [UIColor lightGrayColor].CGColor;
    self.moneyBtn.layer.masksToBounds = YES;
}



-(void)setIsAllowChoosing:(BOOL)isAllowChoosing
{
    _isAllowChoosing   = isAllowChoosing;
    self.moneyBtn.isAllowChoosing = _isAllowChoosing;
    
  //  self.moneyBtn.enabled = _isAllowChoosing;
//    if (_isAllowChoosing) {
//        self.moneyBtn.layer.borderColor = UIColorFromRGBA(kCommonBlueColor, 1.f).CGColor;
//        //        NSMutableAttributedString *str = [self.titleLabel.attributedText mutableCopy];
//        //        [str addAttribute:NSForegroundColorAttributeName value:UIColorFromRGBA(kCommonBlueColor, 1.f)  range:NSMakeRange(0, str.length)];
//        //        [self setAttributedTitle:str forState:UIControlStateNormal];
//        [self.moneyBtn setTitleColor:UIColorFromRGBA(kCommonBlueColor, 1.f) forState:UIControlStateNormal];
//        
//    }else{
//        
//        self.moneyBtn.layer.borderColor = [UIColor lightGrayColor].CGColor;
//        [self.moneyBtn setTitleColor:[UIColor lightGrayColor] forState:UIControlStateNormal];
//        //        NSMutableAttributedString *str = [self.titleLabel.attributedText mutableCopy];
//        //        [str addAttribute:NSForegroundColorAttributeName value:[UIColor lightGrayColor]  range:NSMakeRange(0, str.length)];
//        //        [self setAttributedTitle:str forState:UIControlStateNormal];
//    }
}






+ (UINib *)nib
{
    return [UINib nibWithNibName:NSStringFromClass([self class]) bundle:nil];
}

@end
